/**
 * Created by jn-dinggao on 2017/7/20.
 */
app.factory('InfoUserAuthService',  function($http, $q, $resource, $cookieStore, serviceUtil, ACTIONS, METHODS ,URL){
    var factory = {};
    var param = {};
    var userAuthUrl = URL.BASEURL + URL.USERAUTHURL;
    var initParam = function(){
        param = {};
    };

    factory.addRoleAndAuth = function(roleAuth) {
        return serviceUtil.excute(userAuthUrl + 'addRoleAuth', roleAuth ,METHODS.save);
    };

    factory.getUserAuthByUserName = function (userName) {
        param.userName = userName;
        return serviceUtil.excute(userAuthUrl + 'getUserAuthByUserName',param,METHODS.get)
    }


    return factory;
});